Runs once, the frame this instance’s position crosses from outside the camera’s current 240x160 view to inside it - never again while it stays inside. An instance already inside the view the first time it is ever checked (created there, or placed there by its own room) counts that first check as its one arrival.
inside_view: fires once, the frame this instance enters the camera’s viewRuns once, the frame this instance's position crosses from outside the camera's current 240x160 view to inside it - never again while it stays inside. Unlike Beyond View, this is an EDGE trigger, not a level check: it does not keep firing every frame the instance simply stays in view.
An instance already inside the view the very first time it is ever checked - created there, or placed there by its own room - counts that first check as its one arrival, so Inside View still fires for it exactly once.
Reacting to the arrival itself, rather than just noticing it happened, usually wants an instance variable to drive - a flash timer, a "seen" flag for an achievement, anything Inside View's own single firing should kick off. Declare it in Create first (see Variables, types and scope):
flash_timer = 0;Then, in Inside View itself:
flash_timer = 20;Starts a short flash the moment this instance becomes visible on screen, whether it walked into view or was there from the start - and, because Inside View only ever fires on the arrival itself, never restarts the flash again while it simply stays in view.
An EDGE trigger, the one direction of Beyond View this engine tracks a flag for you so you do not have to (see Hit Room Edge’s own note on why ITS edge-triggered case still needs a hand-kept flag - the difference is instance::_was_in_view, engine-internal state Inside View alone reads).